import request from "@/utils/request";

// 分页查询
export const queryPageApi = (data) => request.get("/roles", { params: data });

// 添加
export const addApi = (data) => request.post("/roles", data);

// 根据id查询
export const queryByIdApi = (id) => request.get(`/roles/${id}`);

// 修改
export const updateApi = (data) => request.put("/roles", data);

// 删除
export const deleteApi = (id) => request.delete(`/roles/${id}`);
